<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Velg nivå</title>
            </f:facet>
        </h:head>

        <h:body>
            <h:form>
                <ui:composition template="../templates/template.xhtml">
                    <ui:define name="content">
                        <h3>#{tekster.RO_sett}</h3>
                        <p:panelGrid>
                            <f:facet name="header">
                                <p:row>
                                    <p:column>#{tekster.Velg_niv}</p:column>
                                    <p:column> Derpeinfo </p:column>
                                </p:row>
                            </f:facet>
                            <p:row>
                                <p:column>
                                    <p:selectOneListbox id="oppgsett" requiredMessage="#{tekster.DMVOS}" onchange="submit()" value="#{OppgBean.hentNiivaa()}" style="width: 150px; height: 220px" >
                                        <f:selectItems value="#{OppgBean.hentNiivaa()}" 
                                                       var="oppgsett"
                                                       itemLabel="#{nivaa.toString()}"
                                                       itemValue="#{nivaa}"/> 
                                    </p:selectOneListbox>
                                    <p:message for="oppgsett"/><br></br>
                                    <p:commandButton value="OK" icon="ui-icon-star" action="../velgOperator_1.xhtml"/>
                                    <p:commandButton value="Tilbake" icon ="ui-icon-star" action="../velgOperator_1.xhtml"/>
                                </p:column>
                                <p:column>
                                    <p:selectOneListbox>
                                    </p:selectOneListbox>
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                        <br></br>
                    </ui:define>
                    <ui:define name="left">
                        <div align="center">
                            <h:commandLink action="/index?faces-redirect=true" immediate="true">
                                <h:graphicImage library="images" name="home.png"/>
                            </h:commandLink><br/><br/>
                            <p:commandButton ajax="false" action="/Elev/elev?faces-redirect=true" value="#{tekster.Tilbake_elev}" immediate="true" />
                        </div>  
                    </ui:define>

                </ui:composition>
            </h:form>
        </h:body>
    </f:view>
</html>